
// const logger = require('./cheese.log')
const http = require('http');

const server = http.createServer((req, res) => {
    console.log(req);
    
    const url = req.url
    res.writeHead(200, {
        'content-type': 'text/html'
    });
    res.write(`{url:${url}}`) 
    
    res.end()
})

server.listen(8080, () => {
    console.log('监听8080');
})



